﻿using System;
using Autofac;
using Hyt.Core;
using Hyt.Web.Security;

namespace Hyt.Web.Mvc
{
    public abstract class IocSetting : IIocSetting
    {
        public void Register(ContainerBuilder builder, IUnitOfWork unitOfWork)
        {
            RegisterControllers(builder);
        }


        /// <summary>
        /// 注册控制器
        /// </summary>
        /// <param name="builder"></param>
        public virtual void RegisterControllers(ContainerBuilder builder)
        {
            builder.RegisterType<SecurityController>().PropertiesAutowired();
        }

    }
}
